package se.webbzon.boltzmann.battle.strategy.playerstrategy;

import java.awt.Color;
import java.awt.Image;

public abstract class AbstractPSLinkIcon extends AbstractPSIcon {
	
	// The player strategy page associated with this link
	private final AbstractPSPage page;
	
	/*============================================================
	Constructors
	============================================================*/

	/** Creates a new abstract player strategy link associated with an
	 * abstract player strategy page and an icon text. **/
	public AbstractPSLinkIcon(	AbstractPSPage page,
								Image image, String text) {
		super(image,text);
		this.page = page;
	}
	
	/** Creates a new abstract player strategy link associated with an
	 * abstract player strategy page, an icon text and a icon text color. **/
	public AbstractPSLinkIcon(	AbstractPSPage page,
								Image image,
								String text, Color color) {
		super(image,text,color);
		this.page = page;
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Returns the player strategy page associated with this link. **/
	public AbstractPSPage getPage() {
		return page;
	}

}
